Component({
    properties: {},
    data: {
        statusBarHeight: wx.getSystemInfoSync().statusBarHeight,
        navBarHeight: 0
    },
    attached() {
        const wxMenu = wx.getMenuButtonBoundingClientRect()
        const statusBar = wx.getSystemInfoSync().statusBarHeight
        const navigationBar = (wxMenu.top - statusBar) * 2 + wxMenu.height
        this.setData({ navBarHeight: navigationBar })
    }
})
